-- GENERATED SPELL FOR [Iron Ring Guard] --


function spell0_32874(pUnit, Event) --@Impale,n/a--
pUnit:FullCastSpellOnTarget(62331,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32874', 0, 1)
end

function spell1_32874(pUnit, Event) --@Impale,n/a--
pUnit:FullCastSpellOnTarget(62418,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32874', 0, 1)
end

function spell2_32874(pUnit, Event) --@Whirling Trip,Self--
pUnit:FullCastSpellOnTarget(24048,pUnit)
pUnit:RegisterEvent('Sorts_32874', 2334, 1)
end

function spell3_32874(pUnit, Event) --@Whirling Trip,n/a--
pUnit:FullCastSpellOnTarget(64151,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32874', 2279, 1)
end

function Sorts_32874(pUnit, Event)
local choix_sorts_32874 = math.random(0, 3)
if choix_sorts_32874 == 0 then
pUnit:RegisterEvent('spell0_32874', 1, 1)
end
if choix_sorts_32874 == 1 then
pUnit:RegisterEvent('spell1_32874', 1, 1)
end
if choix_sorts_32874 == 2 then
pUnit:RegisterEvent('spell2_32874', 1, 1)
end
if choix_sorts_32874 == 3 then
pUnit:RegisterEvent('spell3_32874', 1, 1)
end
end

function mob32874_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32874', math.random(1500, 3000), 1)
end

function mob32874_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32874_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32874_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32874, 1, 'mob32874_Action')
RegisterUnitEvent(32874, 2, 'mob32874_Leave')
RegisterUnitEvent(32874, 3, 'mob32874_Kill')
RegisterUnitEvent(32874, 4, 'mob32874_Die')
